﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using System.Data;
using BusinessEntities;

namespace BusinessLogicLayer
{
    public class HoSoBA_Manager
    {
        private static HoSoBA_Adapter hoso = new HoSoBA_Adapter();

        public DataTable HoSoBA_Kham_All(string MaBS)
        {
            return hoso.HoSoBA_Kham_All(MaBS);
        }

        public DataTable NhomBenh_All()
        {
            return hoso.NhomBenh_All();
        }

        public DataTable PhongBenhDT_All()
        {
            return hoso.PhongBenhDT_All();
        }

        public DataTable GiuongBenhDT_All()
        {
            return hoso.GiuongBenhDT_All();
        }

        public DataTable GiuongBenhDT_LayTheoPhongBenh(string phongbenh)
        {
            return hoso.GiuongBenhDT_LayTheoPhongBenh(phongbenh);
        }

        public DataTable PhongKham_DSMaBNCho(string phongkham)
        {
            return hoso.PhongKham_DSMaBNCho(phongkham);
        }

        public int HoSoBA_CapNhat_Full(int MaBA, DateTime NgayXuatVien, string QuaTrinhTheoDoi, string QuaTrinhDieuTri, string KetQuaDieuTri)
        {
            return hoso.HoSoBA_CapNhat_Full(MaBA, NgayXuatVien, QuaTrinhDieuTri, QuaTrinhTheoDoi, KetQuaDieuTri);
        }

        public int HoSoBA_Them_NoiTru(HoSoBA_Info info)
        {
            return hoso.HoSoBA_Them_NoiTru(info);
        }

        public int HoSoBA_CapNhat_NoiTru(HoSoBA_Info info)
        {
            return hoso.HoSoBA_CapNhat_NoiTru(info);
        }

        public int HoSoBA_Them_NgoaiTru(HoSoBA_Info info)
        {
            return hoso.HoSoBA_Them_NgoaiTru(info);
        }

        public int HoSoBA_CapNhat_NgoaiTru(HoSoBA_Info info)
        {
            return hoso.HoSoBA_CapNhat_NgoaiTru(info);
        }

        public int HoSoBA_Xoa(int MaBA)
        {
            return hoso.HoSoBA_Xoa(MaBA);
        }

        public DataTable HoSoBA_Kham_TimTheoMaBN(string MaBN)
        {
            return hoso.HoSoBA_Kham_TimTheoMaBN(MaBN);
        }

        public DataTable HoSoBA_Kham_TimTheoMaBA1(int MaBA)
        {
            return hoso.HoSoBA_Kham_TimTheoMaBA1(MaBA);
        }

        public DataTable HoSoBA_Kham_TimTheoMaBA(int MaBA)
        {
            return hoso.HoSoBA_Kham_TimTheoMaBA(MaBA);
        }

        public DataTable HoSoBA_Kham_TimTheoMaBN_NgoaiTru(string MaBN)
        {
            return hoso.HoSoBA_Kham_TimTheoMaBN_NgoaiTru(MaBN);
        }

        public DataTable HoSoBA_Kham_TrongNgay_BS(string MaBS)
        {
            return hoso.HoSoBA_Kham_TrongNgay_BS(MaBS);
        }

        public DataTable HoSoBA_TimTheoMaBS(string MaBS)
        {
            return hoso.HoSoBA_TimTheoMaBS(MaBS);
        }

        public int PhongBenhDT_CapNhatSLBN(string PhongBenh, int TongSoBN)
        {
            return hoso.PhongBenhDT_CapNhatSLBN(PhongBenh, TongSoBN);
        }

        public DataTable PhongBenhDT_TimTheoPhongBenh(string PhongBenh)
        {
            return hoso.PhongBenhDT_TimTheoPhongBenh(PhongBenh);
        }

        public DataTable PhongBenh_TongBN_DieuTri()
        {
            return hoso.PhongBenh_TongBN_DieuTri();
        }

        public DataTable PhongKham_TimTheoMaBS(string MaBS)
        {
            return hoso.PhongKham_TimTheoMaBS(MaBS);
        }

        public DataTable HoSoBA_DSLoad(string MaBS)
        {
            return hoso.HoSoBA_DSLoad(MaBS);
        }

        public DataTable HoSoBA_DSBA_PhongBenh(string PhongBenh)
        {
            return hoso.HoSoBA_DSBA_PhongBenh(PhongBenh);
        }

        public DataTable HoSoBA_DSLoad_NgoaiTru(string MaBS)
        {
            return hoso.HoSoBA_DSLoad_NgoaiTru(MaBS);
        }

        // Tìm Kiếm:
        public DataTable HoSoBA_TimTheoMaBA_MaBS(int MaBA, string MaBS)
        {
            return hoso.HoSoBA_TimTheoMaBA_MaBS(MaBA, MaBS);
        }

        public DataTable HoSoBA_TimTheoMaBN_MaBS(string MaBS, int MaBN)
        {
            return hoso.HoSoBA_TimTheoMaBN_MaBS(MaBN, MaBS);
        }

        public DataTable HoSoBA_TimTheoHoTenBN_MaBS(string MaBS, string HoTen)
        {
            return hoso.HoSoBA_TimTheoHoTenBN_MaBS(MaBS, HoTen);
        }

        public DataTable HoSoBA_TimTheoNhomTuoi_MaBS(string MaBS, int t1, int t2)
        {
            return hoso.HoSoBA_TimTheoNhomTuoi_MaBS(MaBS, t1, t2);
        }

        public DataTable HoSoBA_TimTheoDoiTuong_MaBS(string MaBS, string DoiTuong)
        {
            return hoso.HoSoBA_TimTheoDoiTuong_MaBS(MaBS, DoiTuong);
        }

        public DataTable HoSoBA_TimTheoPhongBenh_MaBS(string MaBS, string PhongBenh)
        {
            return hoso.HoSoBA_TimTheoPhongBenh_MaBS(MaBS, PhongBenh);
        }

        public DataTable HoSoBA_TimTheoGiuongBenh_MaBS(string MaBS, string GiuongBenh)
        {
            return hoso.HoSoBA_TimTheoGiuongBenh_MaBS(MaBS, GiuongBenh);
        }

        public DataTable HoSoBA_TimTheoNgayNhapVien_MaBS(string MaBS, DateTime NgayNhapVien)
        {
            return hoso.HoSoBA_TimTheoNgayNhapVien_MaBS(MaBS, NgayNhapVien);
        }

        public DataTable HoSoBA_TimTheoThangNhapVien_MaBS(string MaBS, DateTime NgayNhapVien)
        {
            return hoso.HoSoBA_TimTheoThangNhapVien_MaBS(MaBS, NgayNhapVien);
        }

        public DataTable HoSoBA_TimTheoNamNhapVien_MaBS(string MaBS, DateTime NgayNhapVien)
        {
            return hoso.HoSoBA_TimTheoNamNhapVien_MaBS(MaBS, NgayNhapVien);
        }

        public DataTable HoSoBA_TimTheoDieuTri_MaBS(string MaBS, string DieuTri)
        {
            return hoso.HoSoBA_TimTheoDieuTri_MaBS(MaBS, DieuTri);
        }

        public DataTable HoSoBA_DangDieuTri_MaBS(string MaBS)
        {
            return hoso.HoSoBA_DangDieuTri_MaBS(MaBS);
        }

        public DataTable HoSoBA_DaXuatVien_MaBS(string MaBS)
        {
            return hoso.HoSoBA_DaXuatVien_MaBS(MaBS);
        }

        public DataTable HoSoBA_TimTheo_MaBS(string MaBS)
        {
            return hoso.HoSoBA_TimTheo_MaBS(MaBS);
        }

        public DataTable HoSoBA_TimTheo_TenBS(string TenBS)
        {
            return hoso.HoSoBA_TimTheo_TenBS(TenBS);
        }

        public DataTable HoSoBA_TimTheo_NgayNhapVien(DateTime NgayNhapVien)
        {
            return hoso.HoSoBA_TimTheo_NgayNhapVien(NgayNhapVien);
        }

        public DataTable HoSoBA_TimTheo_ThangNhapVien(DateTime NgayNhapVien)
        {
            return hoso.HoSoBA_TimTheo_ThangNhapVien(NgayNhapVien);
        }

        public DataTable HoSoBA_TimTheo_NamNhapVien(DateTime NgayNhapVien)
        {
            return hoso.HoSoBA_TimTheo_NamNhapVien(NgayNhapVien);
        }

        public DataTable HoSoBA_TimTheo_DangDieuTri()
        {
            return hoso.HoSoBA_TimTheo_DangDieuTri();
        }

        public DataTable HoSoBA_TimTheo_DaXuatVien()
        {
            return hoso.HoSoBA_TimTheo_DaXuatVien();
        }
    }
}
